package com.example.controller;


import com.example.entity.Session;
import com.example.service.SessionService;
import com.example.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 会话表 前端控制器
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-10-23
 */
@RestController
@Api(tags = "会话功能接口")
@RequestMapping("/session")
public class SessionController {

    @Resource
    private SessionService sessionService;

    @ApiOperation("对话功能接口")
    @GetMapping("/getSession")
    public Result selectSession(@RequestParam("contexts") String contexts){
        return sessionService.getSession(contexts);
    }

}

